/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author link3988
 */

import topics.SubTopic;
import topics.MainTopic;
import topics.MicroTopic;
import java.util.*;
public class Test {

    public static void main(String[] args)
    {
        Database db = new Database();
        db.clear();
        db.addStudent("Jerkhead", "technical");
        db.addAdministrator("Samir","password");
        db.addAdministrator("915953819","bb");
        db.addStudent("Billy", "technical");
        db.addInstructor("rusu","qwerty");
        db.addInstructor("joro", "code");
        db.addStudent("Asskid","sequential");
        System.out.println(db.viewInstructors());
        System.out.println(db.viewStudents());
        System.out.println(db.viewAdministrators());
        db.writeToFile();
        ArrayList<MainTopic> lesson = new ArrayList();
        MainTopic t1 = new MainTopic("People are awesome.");
        MainTopic t2 = new MainTopic("People suck.");
        SubTopic s1 = new SubTopic("Chuck Norris is awesome.");
        SubTopic s2 = new SubTopic("Hitler sucked.");
        SubTopic s3 = new SubTopic("Cool People are awesome.");
        ///////////////
        SubTopic s4 = new SubTopic("Cool People are awesome.");
        SubTopic s5 = new SubTopic("Cool People are awesome.");
        SubTopic s6 = new SubTopic("Cool People are awesome.");
        SubTopic s7 = new SubTopic("Cool People are awesome.");
        SubTopic s8 = new SubTopic("Cool People are awesome.");
        SubTopic s9 = new SubTopic("Cool People are awesome.");
        SubTopic s10 = new SubTopic("Cool People are awesome.");
        MainTopic t5 = new MainTopic("People suck1.");
        MainTopic t6 = new MainTopic("People suck.2");
        MainTopic t7 = new MainTopic("People suck.3");
        MainTopic t8 = new MainTopic("People suck.4");
        MainTopic t9 = new MainTopic("People suck.5");
        MainTopic t0 = new MainTopic("People suck.6");
        MainTopic t4 = new MainTopic("People suck.66");
        MainTopic t3 = new MainTopic("People suck.8");
        MainTopic f1 = new MainTopic("People suck.8eeded");
        MainTopic f2 = new MainTopic("People suck.8asdsasd");
        MainTopic f3 = new MainTopic("People suck.8end");
        //////////////////////
        MicroTopic m1 = new MicroTopic("I'm awesome too.");
        MicroTopic m2 = new MicroTopic("Sucky people usually smell bad.");
        MicroTopic m3 = new MicroTopic("You better believe it, I made this shit.");
        s1.addMicroTopic(m1);
        t2.addSubTopic(s2);
        t1.addSubTopic(s1);
        t1.addSubTopic(s3);
        //////////////////////////
        t1.addSubTopic(s10);
        t1.addSubTopic(s9);
        t1.addSubTopic(s8);
        t1.addSubTopic(s7);
        t1.addSubTopic(s6);
        t1.addSubTopic(s5);
        t1.addSubTopic(s4);
        f3.addSubTopic(s10);
        f2.addSubTopic(s9);
        f3.addSubTopic(s8);
        f3.addSubTopic(s7);
        f3.addSubTopic(s6);
        f3.addSubTopic(s5);
        f1.addSubTopic(s4);
        ////////////////////////////
        s2.addMicroTopic(m2);
        s1.addMicroTopic(m3);
        lesson.add(t1);
        lesson.add(t2);
        ///////////////////////////
        lesson.add(t3);
        lesson.add(t4);
        lesson.add(t5);
        lesson.add(t6);
        lesson.add(t7);
        lesson.add(t8);
        lesson.add(t9);
        lesson.add(t0);
        lesson.add(f1);
        lesson.add(f2);
        lesson.add(f3);

        ////////////////////////////
 //       DrawTree tree = new DrawTree(lesson);
 //       SequentialLesson seq = new SequentialLesson(lesson);
    }

}